﻿@model List<FunCode.MVCweb.Controllers.EFObjectContextModel>
@{
    ViewBag.Title = "EFObjectContext";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>
    实体集信息浏览</h2>
<ul>
    @foreach (var m in Model)
    {
        <li>表：@Html.ActionLink(m.table, "DwzCssListRenderBody", new { ObjectContextName = ViewBag.ObjectContextName ,table=m.table})
        </li>
        <li>
            <ul>
                @foreach (var item in m.Properties)
                {
                    <li>
                        @item.Name (@item.PropertyType.Name) </li>
                    
                    if (item.PropertyType.IsGenericType)
                    { 
                    @item.PropertyType.GetGenericArguments()[0].Name
                    }
                }
            </ul>
        </li>
    }
</ul>

